package cn.donting.jme.expansion.builder.mesh;

import cn.donting.jme.expansion.attribute.Attribute;
import cn.donting.jme.ioc.Bean;
import com.formdev.flatlaf.extras.FlatSVGIcon;
import com.jme3.scene.shape.Box;
import com.jme3.scene.shape.Quad;

import javax.swing.*;
import java.util.List;

@Bean
public class QuadAttributeBuilder implements MeshAttributeBuilder<Quad>{
    @Override
    public boolean isHandle(Object o) {
        return o instanceof Quad;
    }



    @Override
    public Quad newInstance() {
        return new Quad(10f,10f,true);
    }

    @Override
    public Icon getIcon(int size) {
        return new FlatSVGIcon("icon/quad.svg",size,size);
    }

    @Override
    public void attribute(List<Attribute> attributes, Quad mesh) {

    }

    @Override
    public String getName() {
        return "平面";
    }
}
